package com.helloworld.sony01.test;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

public class CenterActivity extends AppCompatActivity {

    private Button music1;
    private Button vedio1;
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_center);
        music1 = (Button)findViewById(R.id.music);
        music1.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(CenterActivity.this, MusicActivity.class);
                startActivity(intent);
            }
        });
        vedio1 = (Button)findViewById(R.id.vedio);
        vedio1.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(CenterActivity.this, VedioActivity.class);
                startActivity(intent);
            }
        });
    }
}
